package hqu.cst.XAH.service;

import hqu.cst.XAH.pojo.Movie;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface MovieService {
    List<Movie> getAllMovies();
    ResponseEntity<Movie> getMovieById(Long id);
    void addMovie(Movie movie);
    void deleteMovie(Long id);
    void uploadPoster(Long id, MultipartFile file) throws IOException;
    Resource downloadPoster(Long id) throws IOException;
}
